package com.example.api2interface.controller;

import com.example.api2interface.entity.User;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

@RestController
@Slf4j
public class UserController {

    @GetMapping("/user/{id}")
    public User getById(@PathVariable String id) {
        System.out.println("XiaoXueJi is Good Person");
        return new User("小学鸡","18");
    }
}
